﻿<?xml version="1.0" encoding="utf-8" ?>
<doc xmlns="http://schemas.microsoft.com/aos/2008/xmldoc">
  <function name="UnitExists">
    <summary>
      Returns whether or not a unit exists.
    </summary>
    <paramchoice>
      <param name="unit" type="string" apitype="unitid">The unit to query.</param>
      <param name="name" type="string">The full name of the unit to query.</param>
    </paramchoice>
    <return name="exists" type="number" apitype="1nil">1 if the unit exists, nil otherwise.</return>
  </function>

  <function name="GetRaidRosterInfo">
    <summary>Returns information about a member of the player's raid.</summary>
    <param name="index" type="number">The index of the raid member.</param>
    <return name="name" type="string">The name of the player.</return>
    <return name="rank" type="number">The player's rank in the raid.</return>
    <return name="subgroup" type="number">The raid subgroup that the player belongs to.</return>
    <return name="level" type="number">The player's level.</return>
    <return name="class" type="string">The localized name of the player's class.</return>
    <return name="fileName" type="string">he uppercase english name of the player's class.</return>
    <return name="zone" type="string"> The name of the zone the player is currently in.</return>
    <return name="online" apitype="1nil">1 if the player is currently online, otherwise nil.</return>
    <return name="isDead" apitype="1nil">1 if the player is currently dead, otherwise nil.</return>
    <return name="role" type="string">The player's role, or nil</return>
    <return name="isML" apitype="1nil">1 if the player is the master-looter, otherwise nil</return>
  </function>

  <variable name="event" type="string">
    <summary>
      The name of the event that is set when a frame's OnEvent handler is called.
    </summary>
  </variable>
</doc>